#include "vtkexample.h"

#include "VtkExamples.h"

VtkExample::VtkExample(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);
	vtkRenderWindow *renderWindow = ui.qvtkWidget->GetRenderWindow();
	vtkRenderer *render = vtkRenderer::New();
	renderWindow->AddRenderer(render);
	//render->SetBackground(1.0,1.0,0.0);
	int i = 0;

	double **stripMorph;
	int c = 819;
	int r = 382;
	
	
	
	stripMorph = new double*[r];
	for(int i=0;i<r;i++)	
		stripMorph[i] = new double[c];

	VtkExamples::stripMorph(render, 100, 100	, 10,stripMorph);
	VtkExamples::stripFrana(stripMorph,render,100,100,10);
	
	for (int i = 0; i < r; ++i)
	{
		delete stripMorph[i];

	}
	delete stripMorph;
	
	

}

VtkExample::~VtkExample()
{

}
